<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: Face Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#friends">Friends</a>  </div>
  <div class="headertitle">
<div class="title">Face Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Face" -->
<p><code>#include &lt;<a class="el" href="_face_8h_source.html">Face.h</a>&gt;</code></p>

<p><a href="class_face-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face_1_1_edge_iterator.html">EdgeIterator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face_1_1_vertex_iterator.html">VertexIterator</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2482815273822315fd9d815bac0f5ca2"></a><!-- doxytag: member="Face::SharedPtr" ref="a2482815273822315fd9d815bac0f5ca2" args="" -->
typedef <a class="el" href="class_face.html">Face</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>SharedPtr</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0d11d7ab1982eee90c994654b60a9ea"></a><!-- doxytag: member="Face::WeakPtr" ref="af0d11d7ab1982eee90c994654b60a9ea" args="" -->
typedef <a class="el" href="class_face.html">Face</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>WeakPtr</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac1f3c1a432a57662a73e55c8c52fbff"></a><!-- doxytag: member="Face::Ptr" ref="aac1f3c1a432a57662a73e55c8c52fbff" args="" -->
typedef <a class="el" href="class_face.html">Face</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#ae953b1d1328cb9ef51611cde1a91ae66">Face</a> (<a class="el" href="class_i_surface.html">ISurface</a> *surface=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#aa186b55441e9abccce990572ce4c445e">Face</a> (<a class="el" href="class_i_surface.html">ISurface</a> *surface, const QVector&lt; int &gt; &amp;vertexIndexList)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a60103ee2af03f9b9b6d51e657de9068a">hashCode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a903a146522d4bd4c4f3ef2204344d7e5">iid</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#ac585af7e79a5bb2ec49293deb21f9fb4">addFlag</a> (FaceFlags flag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79fa6728a7b3cd317cfe7fa1621a5ef8"></a><!-- doxytag: member="Face::removeFlag" ref="a79fa6728a7b3cd317cfe7fa1621a5ef8" args="(FaceFlags flag)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeFlag</b> (FaceFlags flag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09a334228638ecacfe8aaf6c6a407a8e"></a><!-- doxytag: member="Face::flags" ref="a09a334228638ecacfe8aaf6c6a407a8e" args="() const " -->
FaceFlags&#160;</td><td class="memItemRight" valign="bottom"><b>flags</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5dde70edf2741c71769d15b9f17a49b1"></a><!-- doxytag: member="Face::setFlags" ref="a5dde70edf2741c71769d15b9f17a49b1" args="(FaceFlags flags)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFlags</b> (FaceFlags flags)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeec647b47f42c99ee026351d2aaf34e1"></a><!-- doxytag: member="Face::isFlagSet" ref="aeec647b47f42c99ee026351d2aaf34e1" args="(FaceFlags flag)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isFlagSet</b> (FaceFlags flag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a56aae065db3f19eb50a8dac472ed80fc">isValid</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_face.html">Face</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a81540807c50e18e57f38da9dc360e18b">addEdge</a> (<a class="el" href="class_edge.html">Edge</a> *he)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a9fabc7e05420b332485c11d69193f05d">addVertex</a> (const QVector&lt; <a class="el" href="class_vertex.html">Vertex</a> * &gt; v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_edge.html">Edge</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a2ad011620fc0f9c39be8f25b54b62836">hedge</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7154d0ac686192036a7d01785753bf8c"></a><!-- doxytag: member="Face::setHEdge" ref="a7154d0ac686192036a7d01785753bf8c" args="(Edge *hedge)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setHEdge</b> (<a class="el" href="class_edge.html">Edge</a> *hedge)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a1d4cd89c25bb8b3d759c2652ebbc9f55">numVertices</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#aaf9edb789e81e6adbbab3830a4ff3ab6">setPoints</a> (const QVector&lt; size_t &gt; &amp;vertexIndexList)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abdd835995b7791763855fdcaef6df7ea"></a><!-- doxytag: member="Face::hasEdge" ref="abdd835995b7791763855fdcaef6df7ea" args="(const Edge &amp;) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasEdge</b> (const <a class="el" href="class_edge.html">Edge</a> &amp;) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a029f4368f321c5e2dcd06f316316e2b5"></a><!-- doxytag: member="Face::hasEdge" ref="a029f4368f321c5e2dcd06f316316e2b5" args="(size_t, size_t) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasEdge</b> (size_t, size_t) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a1614161ace9953a34b475ed40ea66e24">setUserData</a> (void *data)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a5151825a1194ed0b72b96b8472f487b1">userData</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae35a49553447f3950586c97ab4c18938"></a><!-- doxytag: member="Face::operator==" ref="ae35a49553447f3950586c97ab4c18938" args="(const Face &amp;t) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_face.html">Face</a> &amp;t) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a56451ccb52d2c3585d92fd1b9d8487c5"></a><!-- doxytag: member="Face::operator Point3" ref="a56451ccb52d2c3585d92fd1b9d8487c5" args="() const " -->
&#160;</td><td class="memItemRight" valign="bottom"><b>operator Point3</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad155a54539dc837951a6e796c6108f4f"></a><!-- doxytag: member="Face::operator Point3" ref="ad155a54539dc837951a6e796c6108f4f" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>operator Point3</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_vertex.html">Vertex</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a966a6e71a72fcb142103c5dad84a0463">vertexIterator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_vertex.html">Vertex</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a6bc624e1062a2197f7d8deafc59aa2e4">constVertexIterator</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_edge.html">Edge</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a0162737d4ff2ced6ffe7410d89bd5c75">edgeIterator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_edge.html">Edge</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_face.html#a047b32d62825b5e1b4b4a54c26606712">constEdgeIterator</a> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b568b1a676afe696976f3af1cf30fd7"></a><!-- doxytag: member="Face::subdivide" ref="a7b568b1a676afe696976f3af1cf30fd7" args="(int level)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>subdivide</b> (int level)</td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac54aeb14d596a9d60aecfac7deade8c2"></a><!-- doxytag: member="Face::VertexIterator" ref="ac54aeb14d596a9d60aecfac7deade8c2" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>VertexIterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a265a85b438f4a316627f37c1c2d442e8"></a><!-- doxytag: member="Face::EdgeIterator" ref="a265a85b438f4a316627f37c1c2d442e8" args="" -->
class&#160;</td><td class="memItemRight" valign="bottom"><b>EdgeIterator</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_face.html">Face</a> class. This class contains references to points that should form a triangle.</p>
<p>The points are indices of the Object3D point list. So, this class It's only meant to be used with the Object3D class (its not a generic triangle class).</p>
<p>A triangle its only valid if theirs three points are different. Using the default constructor makes a non valid triangle. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Juan Roberto Cabral Flores &lt;<a href="mailto:roberto.cabral@gmail.com">roberto.cabral@gmail.com</a>&gt; </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae953b1d1328cb9ef51611cde1a91ae66"></a><!-- doxytag: member="Face::Face" ref="ae953b1d1328cb9ef51611cde1a91ae66" args="(ISurface *surface=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Face::Face </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_surface.html">ISurface</a> *&#160;</td>
          <td class="paramname"><em>surface</em> = <code>NULL</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor. Initiliazes all point to index 0. </p>

</div>
</div>
<a class="anchor" id="aa186b55441e9abccce990572ce4c445e"></a><!-- doxytag: member="Face::Face" ref="aa186b55441e9abccce990572ce4c445e" args="(ISurface *surface, const QVector&lt; int &gt; &amp;vertexIndexList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Face::Face </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_surface.html">ISurface</a> *&#160;</td>
          <td class="paramname"><em>surface</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QVector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>vertexIndexList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construct a new triangle. The triangle is composed by the passed points ids or references.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p1</td><td>first point that form the triangle. </td></tr>
    <tr><td class="paramname">p2</td><td>second point that form the triangle. </td></tr>
    <tr><td class="paramname">p3</td><td>third point that form the triangle. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a81540807c50e18e57f38da9dc360e18b"></a><!-- doxytag: member="Face::addEdge" ref="a81540807c50e18e57f38da9dc360e18b" args="(Edge *he)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_face.html">Face</a> &amp; Face::addEdge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_edge.html">Edge</a> *&#160;</td>
          <td class="paramname"><em>he</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add a vertex to the face. This method allows adding multiple vertices by chaining addVertex calls. </p>

</div>
</div>
<a class="anchor" id="ac585af7e79a5bb2ec49293deb21f9fb4"></a><!-- doxytag: member="Face::addFlag" ref="ac585af7e79a5bb2ec49293deb21f9fb4" args="(FaceFlags flag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Face::addFlag </td>
          <td>(</td>
          <td class="paramtype">FaceFlags&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set / get attribute flags to the face.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">flag</td><td>possible values FF_None FF_Selected FF_Deleted FF_All </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9fabc7e05420b332485c11d69193f05d"></a><!-- doxytag: member="Face::addVertex" ref="a9fabc7e05420b332485c11d69193f05d" args="(const QVector&lt; Vertex * &gt; v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Face::addVertex </td>
          <td>(</td>
          <td class="paramtype">const QVector&lt; <a class="el" href="class_vertex.html">Vertex</a> * &gt;&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds all the vertices contained in the array. </p>

</div>
</div>
<a class="anchor" id="a047b32d62825b5e1b4b4a54c26606712"></a><!-- doxytag: member="Face::constEdgeIterator" ref="a047b32d62825b5e1b4b4a54c26606712" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_edge.html">Edge</a> &gt; Face::constEdgeIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets an iterator object to traverse all the edges that form part of this face. </p>

</div>
</div>
<a class="anchor" id="a6bc624e1062a2197f7d8deafc59aa2e4"></a><!-- doxytag: member="Face::constVertexIterator" ref="a6bc624e1062a2197f7d8deafc59aa2e4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_vertex.html">Vertex</a> &gt; Face::constVertexIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets an iterator object to traverse all the vertices that form part of this face. </p>

</div>
</div>
<a class="anchor" id="a0162737d4ff2ced6ffe7410d89bd5c75"></a><!-- doxytag: member="Face::edgeIterator" ref="a0162737d4ff2ced6ffe7410d89bd5c75" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_edge.html">Edge</a> &gt; Face::edgeIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets an iterator object to traverse all the edges that form part of this face. </p>

</div>
</div>
<a class="anchor" id="a60103ee2af03f9b9b6d51e657de9068a"></a><!-- doxytag: member="Face::hashCode" ref="a60103ee2af03f9b9b6d51e657de9068a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint Face::hashCode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the hash code for this instance </p>

</div>
</div>
<a class="anchor" id="a2ad011620fc0f9c39be8f25b54b62836"></a><!-- doxytag: member="Face::hedge" ref="a2ad011620fc0f9c39be8f25b54b62836" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_edge.html">Edge</a>* Face::hedge </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets/sets a reference to a half edge that forms this face. </p>

</div>
</div>
<a class="anchor" id="a903a146522d4bd4c4f3ef2204344d7e5"></a><!-- doxytag: member="Face::iid" ref="a903a146522d4bd4c4f3ef2204344d7e5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t Face::iid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets the instance id of the vertex. </p>

</div>
</div>
<a class="anchor" id="a56aae065db3f19eb50a8dac472ed80fc"></a><!-- doxytag: member="Face::isValid" ref="a56aae065db3f19eb50a8dac472ed80fc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Face::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Checks if the triangle data is valid. Triangle is valid only if the three point that compose it are different.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if triangle is valid. False, otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a1d4cd89c25bb8b3d759c2652ebbc9f55"></a><!-- doxytag: member="Face::numVertices" ref="a1d4cd89c25bb8b3d759c2652ebbc9f55" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t Face::numVertices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the number of vertices in this face. </p>

</div>
</div>
<a class="anchor" id="aaf9edb789e81e6adbbab3830a4ff3ab6"></a><!-- doxytag: member="Face::setPoints" ref="aaf9edb789e81e6adbbab3830a4ff3ab6" args="(const QVector&lt; size_t &gt; &amp;vertexIndexList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Face::setPoints </td>
          <td>(</td>
          <td class="paramtype">const QVector&lt; size_t &gt; &amp;&#160;</td>
          <td class="paramname"><em>vertexIndexList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the first point index reference.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p1</td><td>index of the first point. </td></tr>
    <tr><td class="paramname">p2</td><td>index of the second point. </td></tr>
    <tr><td class="paramname">p3</td><td>index of the third point. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1614161ace9953a34b475ed40ea66e24"></a><!-- doxytag: member="Face::setUserData" ref="a1614161ace9953a34b475ed40ea66e24" args="(void *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Face::setUserData </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allows to attach a pointer to a user defined structure or data </p>

</div>
</div>
<a class="anchor" id="a5151825a1194ed0b72b96b8472f487b1"></a><!-- doxytag: member="Face::userData" ref="a5151825a1194ed0b72b96b8472f487b1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* Face::userData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pointer to the user data.</p>
<p>The user is responsible to cast the pointer to the correct type </p>

</div>
</div>
<a class="anchor" id="a966a6e71a72fcb142103c5dad84a0463"></a><!-- doxytag: member="Face::vertexIterator" ref="a966a6e71a72fcb142103c5dad84a0463" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_iterator.html">Iterator</a>&lt; <a class="el" href="class_vertex.html">Vertex</a> &gt; Face::vertexIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Gets an iterator object to traverse all the vertices that form part of this face. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>engine/include/<a class="el" href="_face_8h_source.html">Face.h</a></li>
<li>engine/src/Face.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu May 31 2012 16:19:52 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
